<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Order extends Model
{
    //关联数据表
    public $table = 'order';

    //主键
    public $primaryKey = "id";

    //允许操作的字段
    public $fillable = ['bid','orderno','url','status','branch','price','isok','buytime','time','num','productid','productprice','productname','producttype','templateid','chargeaccount','chargetype','jsitid','gsitid','buyerip','remainingnumber','customerorderno','extractsignid','ext','pushnum'];

    //不允许操作的字段
    public $guarded=[];

    //是否维护crated_at和updated_at字段
    public $timestamps = false;

    public function order_exists($orderno){

    }
}
